const Mock = require('mockjs')

module.exports = [
  // user login
  {
    url: '/auth/sms',
    type: 'post',
    response: _ => {
      return {
        code: 0,
        data: { captcha: Mock.mock('@integer(10000, 99999)') }
      }
    }
  },
  {
    url: '/auth/2stepcode',
    type: 'post',
    response: _ => {
      return {
        code: 0,
        data: { stepCode: Mock.mock('@integer(0, 1)') }
      }
    }
  }
]
